﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000FCD RID: 4045
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueScoreRewardInfo : IMessage<RogueScoreRewardInfo>, IMessage, IEquatable<RogueScoreRewardInfo>, IDeepCloneable<RogueScoreRewardInfo>, IBufferMessage
	{
		// Token: 0x1700332C RID: 13100
		// (get) Token: 0x0600B4F7 RID: 46327 RVA: 0x001E84BF File Offset: 0x001E66BF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueScoreRewardInfo> Parser
		{
			get
			{
				return RogueScoreRewardInfo._parser;
			}
		}

		// Token: 0x1700332D RID: 13101
		// (get) Token: 0x0600B4F8 RID: 46328 RVA: 0x001E84C6 File Offset: 0x001E66C6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueScoreRewardInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700332E RID: 13102
		// (get) Token: 0x0600B4F9 RID: 46329 RVA: 0x001E84D8 File Offset: 0x001E66D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueScoreRewardInfo.Descriptor;
			}
		}

		// Token: 0x0600B4FA RID: 46330 RVA: 0x001E84DF File Offset: 0x001E66DF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueScoreRewardInfo()
		{
		}

		// Token: 0x0600B4FB RID: 46331 RVA: 0x001E84F4 File Offset: 0x001E66F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueScoreRewardInfo(RogueScoreRewardInfo other) : this()
		{
			this.poolRefreshed_ = other.poolRefreshed_;
			this.hasTakenInitialScore_ = other.hasTakenInitialScore_;
			this.rewardBeginTime_ = other.rewardBeginTime_;
			this.poolId_ = other.poolId_;
			this.exploreScore_ = other.exploreScore_;
			this.rewardEndTime_ = other.rewardEndTime_;
			this.takenNormalFreeRowList_ = other.takenNormalFreeRowList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B4FC RID: 46332 RVA: 0x001E8571 File Offset: 0x001E6771
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueScoreRewardInfo Clone()
		{
			return new RogueScoreRewardInfo(this);
		}

		// Token: 0x1700332F RID: 13103
		// (get) Token: 0x0600B4FD RID: 46333 RVA: 0x001E8579 File Offset: 0x001E6779
		// (set) Token: 0x0600B4FE RID: 46334 RVA: 0x001E8581 File Offset: 0x001E6781
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool PoolRefreshed
		{
			get
			{
				return this.poolRefreshed_;
			}
			set
			{
				this.poolRefreshed_ = value;
			}
		}

		// Token: 0x17003330 RID: 13104
		// (get) Token: 0x0600B4FF RID: 46335 RVA: 0x001E858A File Offset: 0x001E678A
		// (set) Token: 0x0600B500 RID: 46336 RVA: 0x001E8592 File Offset: 0x001E6792
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool HasTakenInitialScore
		{
			get
			{
				return this.hasTakenInitialScore_;
			}
			set
			{
				this.hasTakenInitialScore_ = value;
			}
		}

		// Token: 0x17003331 RID: 13105
		// (get) Token: 0x0600B501 RID: 46337 RVA: 0x001E859B File Offset: 0x001E679B
		// (set) Token: 0x0600B502 RID: 46338 RVA: 0x001E85A3 File Offset: 0x001E67A3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public long RewardBeginTime
		{
			get
			{
				return this.rewardBeginTime_;
			}
			set
			{
				this.rewardBeginTime_ = value;
			}
		}

		// Token: 0x17003332 RID: 13106
		// (get) Token: 0x0600B503 RID: 46339 RVA: 0x001E85AC File Offset: 0x001E67AC
		// (set) Token: 0x0600B504 RID: 46340 RVA: 0x001E85B4 File Offset: 0x001E67B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PoolId
		{
			get
			{
				return this.poolId_;
			}
			set
			{
				this.poolId_ = value;
			}
		}

		// Token: 0x17003333 RID: 13107
		// (get) Token: 0x0600B505 RID: 46341 RVA: 0x001E85BD File Offset: 0x001E67BD
		// (set) Token: 0x0600B506 RID: 46342 RVA: 0x001E85C5 File Offset: 0x001E67C5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ExploreScore
		{
			get
			{
				return this.exploreScore_;
			}
			set
			{
				this.exploreScore_ = value;
			}
		}

		// Token: 0x17003334 RID: 13108
		// (get) Token: 0x0600B507 RID: 46343 RVA: 0x001E85CE File Offset: 0x001E67CE
		// (set) Token: 0x0600B508 RID: 46344 RVA: 0x001E85D6 File Offset: 0x001E67D6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public long RewardEndTime
		{
			get
			{
				return this.rewardEndTime_;
			}
			set
			{
				this.rewardEndTime_ = value;
			}
		}

		// Token: 0x17003335 RID: 13109
		// (get) Token: 0x0600B509 RID: 46345 RVA: 0x001E85DF File Offset: 0x001E67DF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> TakenNormalFreeRowList
		{
			get
			{
				return this.takenNormalFreeRowList_;
			}
		}

		// Token: 0x0600B50A RID: 46346 RVA: 0x001E85E7 File Offset: 0x001E67E7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueScoreRewardInfo);
		}

		// Token: 0x0600B50B RID: 46347 RVA: 0x001E85F8 File Offset: 0x001E67F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueScoreRewardInfo other)
		{
			return other != null && (other == this || (this.PoolRefreshed == other.PoolRefreshed && this.HasTakenInitialScore == other.HasTakenInitialScore && this.RewardBeginTime == other.RewardBeginTime && this.PoolId == other.PoolId && this.ExploreScore == other.ExploreScore && this.RewardEndTime == other.RewardEndTime && this.takenNormalFreeRowList_.Equals(other.takenNormalFreeRowList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B50C RID: 46348 RVA: 0x001E8698 File Offset: 0x001E6898
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.PoolRefreshed)
			{
				num ^= this.PoolRefreshed.GetHashCode();
			}
			if (this.HasTakenInitialScore)
			{
				num ^= this.HasTakenInitialScore.GetHashCode();
			}
			if (this.RewardBeginTime != 0L)
			{
				num ^= this.RewardBeginTime.GetHashCode();
			}
			if (this.PoolId != 0U)
			{
				num ^= this.PoolId.GetHashCode();
			}
			if (this.ExploreScore != 0U)
			{
				num ^= this.ExploreScore.GetHashCode();
			}
			if (this.RewardEndTime != 0L)
			{
				num ^= this.RewardEndTime.GetHashCode();
			}
			num ^= this.takenNormalFreeRowList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B50D RID: 46349 RVA: 0x001E8762 File Offset: 0x001E6962
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B50E RID: 46350 RVA: 0x001E876A File Offset: 0x001E696A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B50F RID: 46351 RVA: 0x001E8774 File Offset: 0x001E6974
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.RewardBeginTime != 0L)
			{
				output.WriteRawTag(8);
				output.WriteInt64(this.RewardBeginTime);
			}
			if (this.PoolId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.PoolId);
			}
			if (this.HasTakenInitialScore)
			{
				output.WriteRawTag(32);
				output.WriteBool(this.HasTakenInitialScore);
			}
			if (this.RewardEndTime != 0L)
			{
				output.WriteRawTag(40);
				output.WriteInt64(this.RewardEndTime);
			}
			this.takenNormalFreeRowList_.WriteTo(ref output, RogueScoreRewardInfo._repeated_takenNormalFreeRowList_codec);
			if (this.ExploreScore != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.ExploreScore);
			}
			if (this.PoolRefreshed)
			{
				output.WriteRawTag(96);
				output.WriteBool(this.PoolRefreshed);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B510 RID: 46352 RVA: 0x001E8850 File Offset: 0x001E6A50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.PoolRefreshed)
			{
				num += 2;
			}
			if (this.HasTakenInitialScore)
			{
				num += 2;
			}
			if (this.RewardBeginTime != 0L)
			{
				num += 1 + CodedOutputStream.ComputeInt64Size(this.RewardBeginTime);
			}
			if (this.PoolId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PoolId);
			}
			if (this.ExploreScore != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ExploreScore);
			}
			if (this.RewardEndTime != 0L)
			{
				num += 1 + CodedOutputStream.ComputeInt64Size(this.RewardEndTime);
			}
			num += this.takenNormalFreeRowList_.CalculateSize(RogueScoreRewardInfo._repeated_takenNormalFreeRowList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B511 RID: 46353 RVA: 0x001E8904 File Offset: 0x001E6B04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueScoreRewardInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.PoolRefreshed)
			{
				this.PoolRefreshed = other.PoolRefreshed;
			}
			if (other.HasTakenInitialScore)
			{
				this.HasTakenInitialScore = other.HasTakenInitialScore;
			}
			if (other.RewardBeginTime != 0L)
			{
				this.RewardBeginTime = other.RewardBeginTime;
			}
			if (other.PoolId != 0U)
			{
				this.PoolId = other.PoolId;
			}
			if (other.ExploreScore != 0U)
			{
				this.ExploreScore = other.ExploreScore;
			}
			if (other.RewardEndTime != 0L)
			{
				this.RewardEndTime = other.RewardEndTime;
			}
			this.takenNormalFreeRowList_.Add(other.takenNormalFreeRowList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B512 RID: 46354 RVA: 0x001E89B5 File Offset: 0x001E6BB5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B513 RID: 46355 RVA: 0x001E89C0 File Offset: 0x001E6BC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 40U)
				{
					if (num <= 24U)
					{
						if (num == 8U)
						{
							this.RewardBeginTime = input.ReadInt64();
							continue;
						}
						if (num == 24U)
						{
							this.PoolId = input.ReadUInt32();
							continue;
						}
					}
					else
					{
						if (num == 32U)
						{
							this.HasTakenInitialScore = input.ReadBool();
							continue;
						}
						if (num == 40U)
						{
							this.RewardEndTime = input.ReadInt64();
							continue;
						}
					}
				}
				else if (num <= 50U)
				{
					if (num == 48U || num == 50U)
					{
						this.takenNormalFreeRowList_.AddEntriesFrom(ref input, RogueScoreRewardInfo._repeated_takenNormalFreeRowList_codec);
						continue;
					}
				}
				else
				{
					if (num == 56U)
					{
						this.ExploreScore = input.ReadUInt32();
						continue;
					}
					if (num == 96U)
					{
						this.PoolRefreshed = input.ReadBool();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x0400491E RID: 18718
		private static readonly MessageParser<RogueScoreRewardInfo> _parser = new MessageParser<RogueScoreRewardInfo>(() => new RogueScoreRewardInfo());

		// Token: 0x0400491F RID: 18719
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004920 RID: 18720
		public const int PoolRefreshedFieldNumber = 12;

		// Token: 0x04004921 RID: 18721
		private bool poolRefreshed_;

		// Token: 0x04004922 RID: 18722
		public const int HasTakenInitialScoreFieldNumber = 4;

		// Token: 0x04004923 RID: 18723
		private bool hasTakenInitialScore_;

		// Token: 0x04004924 RID: 18724
		public const int RewardBeginTimeFieldNumber = 1;

		// Token: 0x04004925 RID: 18725
		private long rewardBeginTime_;

		// Token: 0x04004926 RID: 18726
		public const int PoolIdFieldNumber = 3;

		// Token: 0x04004927 RID: 18727
		private uint poolId_;

		// Token: 0x04004928 RID: 18728
		public const int ExploreScoreFieldNumber = 7;

		// Token: 0x04004929 RID: 18729
		private uint exploreScore_;

		// Token: 0x0400492A RID: 18730
		public const int RewardEndTimeFieldNumber = 5;

		// Token: 0x0400492B RID: 18731
		private long rewardEndTime_;

		// Token: 0x0400492C RID: 18732
		public const int TakenNormalFreeRowListFieldNumber = 6;

		// Token: 0x0400492D RID: 18733
		private static readonly FieldCodec<uint> _repeated_takenNormalFreeRowList_codec = FieldCodec.ForUInt32(50U);

		// Token: 0x0400492E RID: 18734
		private readonly RepeatedField<uint> takenNormalFreeRowList_ = new RepeatedField<uint>();
	}
}
